package com.dianping.cat.home.dependency.format.entity;

import com.dianping.cat.home.dependency.format.BaseEntity;
import com.dianping.cat.home.dependency.format.IVisitor;
import java.util.ArrayList;
import java.util.List;


public class ProductLine
  extends BaseEntity<ProductLine>
{
  private String m_id;
  private Integer m_colInside;
/* 14 */   private List<Domain> m_domains = new ArrayList();






/* 21 */   public void accept(IVisitor visitor) { visitor.visitProductLine(this); }


  public ProductLine addDomain(Domain domain) {
/* 25 */     this.m_domains.add(domain);
/* 26 */     return this;
  }


  public boolean equals(Object obj) {
/* 31 */     if (obj instanceof ProductLine) {
/* 32 */       ProductLine _o = (ProductLine)obj;

/* 34 */       if (!equals(getId(), _o.getId())) {
/* 35 */         return false;
      }

/* 38 */       if (!equals(getColInside(), _o.getColInside())) {
/* 39 */         return false;
      }

/* 42 */       if (!equals(getDomains(), _o.getDomains())) {
/* 43 */         return false;
      }


/* 47 */       return true;
    }

/* 50 */     return false;
  }


/* 54 */   public Integer getColInside() { return this.m_colInside; }



/* 58 */   public List<Domain> getDomains() { return this.m_domains; }



/* 62 */   public String getId() { return this.m_id; }



  public int hashCode() {
/* 67 */     int hash = 0;

/* 69 */     hash = hash * 31 + ((this.m_id == null) ? 0 : this.m_id.hashCode());
/* 70 */     hash = hash * 31 + ((this.m_colInside == null) ? 0 : this.m_colInside.hashCode());
/* 71 */     for (Domain e : this.m_domains) {
/* 72 */       hash = hash * 31 + ((e == null) ? 0 : e.hashCode());
    }


/* 76 */     return hash;
  }


  public void mergeAttributes(ProductLine other) {
/* 81 */     if (other.getId() != null) {
/* 82 */       this.m_id = other.getId();
    }

/* 85 */     if (other.getColInside() != null) {
/* 86 */       this.m_colInside = other.getColInside();
    }
  }

  public ProductLine setColInside(Integer colInside) {
/* 91 */     this.m_colInside = colInside;
/* 92 */     return this;
  }

  public ProductLine setId(String id) {
/* 96 */     this.m_id = id;
/* 97 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/dependency/format/entity/ProductLine.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */